package com.leather.message.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leather.common.entity.Message;
import com.leather.common.result.Result;
import com.leather.common.vo.MessageVo;

public interface MessageService  extends IService<Message> {


    /**
     * 新增消息给用户
     * @param messageVo
     * @return
     */
    Result addMessage(MessageVo messageVo);

    /**
     * 根据userId获取用户所有的消息
     * @param userId
     * @return
     */
    Result getUserMessage(int userId, Page<Message> pages);

}
